package main

import (
	"fmt"
	"git.oschina.net/bosong/GoDemo/socket"
	"github.com/Unknwon/goconfig"
	"log"
)

func main() {

	cfg := "config.ini"
	c, err := goconfig.LoadConfigFile(cfg)
	if err != nil {
		log.Println("读取配置文件失败:" + cfg)
	}
	value, err := c.GetValue(goconfig.DEFAULT_SECTION, "port")
	if err != nil {
		log.Println("未找到port 配置！")
	}
	fmt.Println(value)
	socket.Start(value)
	fmt.Println("hello word!")
}
